08CMS С˵ע - ű©

ByxiaoCon 
    ţשһη


ƬΣ

//Ԥ
$searchword = empty($searchword) ? '' : cutstr(trim($searchword),50,'');
$_da['searchword'] = $searchword;
if($searchword){
        $filterstr .= ($filterstr ? '&' : '').'searchword='.rawurlencode(stripslashes($searchword));
}
//ԤģʽsubjectؼkeywordsfulltxtԱmname
$searchmode = empty($searchmode) ? 'subject' : trim($searchmode);
if(!in_array($searchmode,array('subject','keywords','fulltxt','mname'))) $searchmode = 'subject';

if(!$chid){
        $nochids = empty($nochids) ? '' : trim($nochids);
        if($nochids){//ųģ
                $_da['nochids'] = $nochids;
                $filterstr .= ($filterstr ? '&' : '')."nochids=".$nochids;
                $nochids = explode(',',$nochids);
                if($nochids) $wherestr .= " AND a.chid ".multi_str($nochids,1);
        }
 


    ע롣

    http://localhost/search.php?searchmode=subject&searchword=[%]&caid=0&chid=0&ccid4=0&indays=0&orderby=createdate&searchsubmit=1

    searchword⡣

    ŬѧpythonԺдexpҵˡ
